﻿<phone:PhoneApplicationPage
    x:Class="TestMatrix.Phone.Page1"
    xmlns:telerikCore="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Core"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
    xmlns:telerikData="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"
    xmlns:telerikJumpList="clr-namespace:Telerik.Windows.Controls.JumpList;assembly=Telerik.Windows.Controls.Data"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    
    <Grid x:Name="LayoutRoot" Margin="12, 0, 0, 0">
        <Grid.Resources>
            <DataTemplate x:Name="ItemTemplate">
                <!--<Border Padding="0, 8, 0, 8">-->
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Grid Grid.Column="0">
                            <!--<Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>-->
                            <Border BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="Black" Width="96" Height="96">
                                <Image x:Name="bitmap" Source="{Binding Bitmap}" Grid.Row="0" Stretch="UniformToFill" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                            </Border>
                        </Grid>
                        <Grid Grid.Column="1" Margin="15, 0, 0, 0" VerticalAlignment="Center">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="Auto"/>
                            </Grid.RowDefinitions>
                            <TextBlock Name="txb_Type"  Text="{Binding TokenCounts}" FontSize="{StaticResource PhoneFontSizeLarge}" Grid.Row="0"/>
                            <StackPanel Orientation="Horizontal" Grid.Row="1">
                                <TextBlock Text="{Binding TokenCounts}" FontSize="17" VerticalAlignment="Center" Margin="0, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}" />
                                <Rectangle VerticalAlignment="Stretch" Width="1" Fill="{StaticResource PhoneSubtleBrush}" Margin="0, 3, 8, 3"/>
                                <TextBlock Text="{Binding Counts}" FontSize="17" VerticalAlignment="Center" Margin="0, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/>
                                
                            </StackPanel>
            
                        </Grid>
                    </Grid>
                <!--</Border>-->
            </DataTemplate>
        </Grid.Resources>
        <!--<Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>-->
        <!--<TextBlock Text="Main Page" FontSize="40" FontStyle="Italic"/>-->
        <!--<ScrollViewer VerticalScrollBarVisibility="Auto">-->
            
        <telerikData:RadJumpList CacheMode="BitmapCache"
                                  ScrollViewer.VerticalScrollBarVisibility="Auto"
                                 x:Name="jumpList" 
                                 ItemTemplate="{StaticResource ItemTemplate}"
                                 MouseEnter="jumplist_btnDown"
                                 MouseLeftButtonUp="jumpList_MouseLeftButtonUp"
                                 >
            <telerikData:RadJumpList.ListHeaderTemplate>
                <DataTemplate>
                    <Border BorderThickness="0, 3, 0, 3" BorderBrush="#0795B9" Background="{StaticResource PhoneChromeBrush}" Padding="0, 8, 0, 8" Margin="0,0,0,6">
                        <StackPanel Orientation="Horizontal" Margin="20, 0, 20, 0">
                            <Image VerticalAlignment="Center" Source="/Data/netflix-logo.png" Margin="-16, 0, 8, 0"/>
                            <TextBlock VerticalAlignment="Center" Text="Navigate To" FontWeight="Bold" FontSize="17"/>
                            <TextBlock VerticalAlignment="Center" Text="Items" Margin="8,0,0,0" FontWeight="Bold" FontSize="17" Foreground="{StaticResource PhoneAccentBrush}"/>
                        </StackPanel>
                    </Border>
                </DataTemplate>
            </telerikData:RadJumpList.ListHeaderTemplate>
        </telerikData:RadJumpList>
        <!--</ScrollViewer>-->
    </Grid>
    
</phone:PhoneApplicationPage>